Import("env")

env = env.Clone()

yamlEnv = env.Clone()
yamlEnv.InjectThirdParty(libraries=["yaml"])

mongobridge = env.Program(
    target="mongobridge",
    source=[
        "bridge.cpp",
        "bridge_commands.cpp",
        "mongobridge_options.cpp",
        "mongobridge_options_gen.cpp",
        "mongobridge_options_init.cpp",
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/db/dbmessage",
        "$BUILD_DIR/mongo/db/service_context_non_d",
        "$BUILD_DIR/mongo/rpc/rpc",
        "$BUILD_DIR/mongo/transport/message_compressor",
        "$BUILD_DIR/mongo/transport/message_compressor_options_server",
        "$BUILD_DIR/mongo/transport/service_executor",
        "$BUILD_DIR/mongo/transport/session_manager",
        "$BUILD_DIR/mongo/transport/transport_layer_manager",
        "$BUILD_DIR/mongo/util/net/network",
        "$BUILD_DIR/mongo/util/options_parser/options_parser_init",
        "$BUILD_DIR/mongo/util/signal_handlers",
    ],
    AIB_COMPONENT="dist-test",
)
